namespace FIREFLYX {
    /**
     * 原生 html 图像 Processor
     */
    export class HtmlImageProcessor implements IAssetProcessor {
        public Type: AssetType = AssetType.HTML_IMAGE;
        public suffix: string = ".hi.*";    //htmlImageElement
        public rawType: XMLHttpRequestResponseType = "blob";
        public parse(data: HTMLImageElement, filePath: string): Nullable<Asset> {
            let hImage = new HtmlImage();
            hImage.image = data;
            return hImage;
        }
    }
}